package factory;

/**
 * @author:Administrator
 * @date:2022/1/25
 * @describe:
 */
public class Factory {

    public static Api create(int type) {
        switch (type) {
            case 1:
                return new ImplA();
            case 2:
                return new ImplB();
            default:
                return new ImplC();
        }
    }
}
